package com.jx.smartbot.entity;

import java.io.Serializable;
import javax.persistence.*;

import com.fasterxml.jackson.annotation.JsonBackReference;
import com.jx.smartbot.entityListener.WpAssistantListener;

/**
 * The persistent class for the wp_assistant_gocom database table.
 * 
 */
@Entity
@Table(name="wp_assistant_gocom")
@NamedQuery(name="WpAssistantGocom.findAll", query="SELECT w FROM WpAssistantGocom w")
@EntityListeners(WpAssistantListener.class)
public class WpAssistantGocom implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private int id;

	private String appid;

	private String superid;
	
	private String secret;   
	
	@Transient
	private String assistantName;
	
	@OneToOne(fetch = FetchType.EAGER)
	@JoinColumn(name="assistant_id")
	@JsonBackReference
	private WpAssistant wpAssistant;

	public WpAssistantGocom() {
	}

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getAppid() {
		return this.appid;
	}

	public void setAppid(String appid) {
		this.appid = appid;
	}

	public String getSuperid() {
		return this.superid;
	}

	public void setSuperid(String superid) {
		this.superid = superid;
	}

	public WpAssistant getWpAssistant() {
		return this.wpAssistant;
	}

	public void setWpAssistant(WpAssistant wpAssistant) {
		this.wpAssistant = wpAssistant;
	}

	public String getSecret() {
		return secret;
	}

	public void setSecret(String secret) {
		this.secret = secret;
	}

	public String getAssistantName() {
		return assistantName;
	}

	public void setAssistantName(String assistantName) {
		this.assistantName = assistantName;
	}

}